/**
 * @description 定时器
 *
 * @param {number} time 定时延迟时间
 *      例: 1000
 * */
const timeout = (time: number) => new Promise<void>(resolve => setTimeout(resolve, time))

export default timeout
